package com.shenmazong.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shenmazong.pojo.TbTeacher;
import com.shenmazong.service.TbTeacherService;
import com.shenmazong.mapper.TbTeacherMapper;
import com.shenmazong.utils.ResultResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class TbTeacherServiceImpl extends ServiceImpl<TbTeacherMapper, TbTeacher>
implements TbTeacherService{
    @Autowired
    TbTeacherMapper tbTeacherMapper;


    @Override
    public ResultResponse findTeacher() {
        List<TbTeacher> tbTeachers = tbTeacherMapper.selectList(null);
        return ResultResponse.SUCCESS(tbTeachers);
    }
}




